package cn.hznc.controller.entryexitrecord;

import cn.hznc.controller.service.entryexitrecord.AbutmentEntryExitRecordService;
import cn.hznc.domain.request.inventory.AbutmentEntryExitRecordReq;
import cn.hznc.domain.request.inventory.QueryWarehouseReq;
import cn.hznc.domain.response.ResponseBody;
import cn.hznc.vo.DateVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author：Administrator
 * @Date：2023/11/6 11:20
 */
@RestController
@Slf4j
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/entryExitRecord")
public class EntryExitRecordController{

    @Autowired
    private AbutmentEntryExitRecordService entryExitRecordService;

    /**
     * 对接entryExitRecord记录表
     *
     * @return
     */
    @RequestMapping(value = "/abutmentEntryExitRecord", method = RequestMethod.POST)
    public ResponseBody abutmentEntryExitRecord(@RequestBody AbutmentEntryExitRecordReq abutmentEntryExitRecordReq) {
        return ResponseBody.success(entryExitRecordService.abutmentEntryExitRecord(abutmentEntryExitRecordReq));
    }

}
